package com.custom.base.http

import com.custom.base.config.BaseConfig
import com.custom.base.util.GosnUtil
import com.custom.base.util.LogUtil

class BaseHttpModel(
    var http:String = "",
    var result:String = "",
    val head:MutableMap<String,String>
){
    fun print(){
        if(BaseConfig.getInstance.isLog()){
            LogUtil.e(toString(),"BaseHttpModel")
        }
    }
    override fun toString(): String {
        return "    \n--------------------------------------------\n" +
                "-  请求头部：${GosnUtil.object2Json(head)} \n" +
                "-  请求接口：$http \n" +
                "-  请求结果：$result \n" +
                "--------------------------------------------"
    }
}